<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>留言修改</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    <link rel="stylesheet" href="../../css/ht/ht-UserEdit.css">
</head>
<body style=" background-color: #EEF5F9;">
<?php
$cid = $_GET['cid'];
require ('../Common/db.php');
//$sql="select * from comments,users,blogs where comments.uid=users.uid and comments.bid=blogs.bid";
$sql="select * from comments inner join users on comments.uid=users.uid inner join blogs on comments.bid=blogs.bid";
$result = mysql_query($sql) or die('查询失败！'.mysql_error());
$row = mysql_fetch_assoc($result);
?>
<?php require ('../Common/nav.php')?>
<!--  内容部分-->
<div class="title">
    <span><i>留言修改</i></span>
</div>
<div class="content" >
    <!--  左边内容starting    -->
    <div class="left">
        <h4 class="img_title" style="text-align: center">博客封面:</h4>
        <div class="userImg">
            <img src="../../images/blog/<?php echo $row["pic"]; ?>" title="<?php echo $row["title"]; ?>"
                 alt="<?php echo $row["title"] ?>" style="height: 250px;width: 300px;border-radius: 100%">
        </div>
    </div>
    <!--左边内容ending-->
    <div class="right" >
        <form action="doCommEdit.php" method="post" enctype="multipart/form-data">
            <input type="hidden" name="cid" value="<?php echo $row["cid"];?>">
            <div class="form-group">
                <label class="col-md-12">博客标题</label>
                <div class="col-md-12">
                    <input type="text" name="title" disabled="disabled" class="form-control form-control-line" placeholder="<?php  echo $row["title"]; ?>">
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-12">留言修改</label>
                <div class="col-md-12">
<!--                       <input type="text" style="width: 1100px;height: 90px" name="content"-->
<!--                              placeholder="原留言内容:--><?php //echo $row["content"]?><!--;"/>-->
                    <textarea rows="5" style="width: 1100px" name="content" placeholder="原留言：<?php echo $row["content"]?>"></textarea>
                </div>
            </div>
                <div class="form-group">
                    <label class="col-md-12">留言时间</label>
                    <div class="col-md-12">
                        <input type="text" name="cdate" disabled="disabled" class="form-control form-control-line" placeholder="评论时间：<?php  echo $row["cdate"]; ?>">
                    </div>
                </div>
            <div class="form-group">
                <label class="col-md-12">留言用户</label>
                <div class="col-md-12">
                    <input type="text" name="uid" disabled="disabled" class="form-control form-control-line" placeholder="评论用户：<?php  echo $row["uname"]; ?>">
                </div>
            </div>
                <div class="form-group">
                    <div class="col-sm-12">
                        <button class="btn btn-success" value="更新">更新</button>
                    </div>
                </div>
        </form>
    </div>
</div>
</body>
</html>